﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DotSpatial.Controls;
using DotSpatial.Data;
using DotSpatial.Symbology;

namespace ShadingTab
{
    public partial class frmAddBuilding : Form 
    {
        ProjectVariables prj = new ProjectVariables();
        MainClass main = new MainClass();

        public frmAddBuilding(MainClass tools, ProjectVariables proj)
        {
            InitializeComponent();
            main = tools;
            prj = proj;
        }


        public void btnSaveBuilding_Click(object sender, EventArgs e)
        {          
            main.CentroidAsSite(prj.LyrBuildingName);
            main.drawBuildingShadow();
            
            //main.EnableBuildingEdit();

        }
    }
}
